<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>cscms产品 - Powered by cscms</title>
<link rel="stylesheet" href="<?=install_path?>packs/install/images/css.css" />
</head>
<body>
	<div class="wrap">
		<div class="header">
			<h1 class="logo">logo</h1>
					<div class="icon_install">安装向导</div>
					<div class="version">v4</div>
		</div><div class="section">
	<div class="step">
		<ul>
			<li class="on"><em>1</em>检测环境</li>
			<li class="on"><em>2</em>创建数据</li>
			<li class="current"><em>3</em>完成安装</li>
		</ul>
	</div>
	<div class="install" id="log">
		<ul id="loginner">
		</ul>
	</div>
	<div class="bottom tac">
		<a href="javascript:;" class="btn_old"><img src="<?=install_path?>packs/install/images/loading.gif" align="absmiddle" />&nbsp;正在安装...</a>
	</div>
</section>
<script type="text/javascript"> 
var log = "<?=$str?>";
var n = 0;
var timer = 0;
log = log.split('<cscms>');
function GoPlay(){
	if (n > log.length-1) {
		n=-1;
		clearIntervals();
	}
	if (n > -1) {
		postcheck(n);
		n++;
	}
}
function postcheck(n){
	document.getElementById('loginner').innerHTML += '<li><span class="correct_span">&radic;</span>创建数据表' + log[n] + '，完成</li>';
	document.getElementById('log').scrollTop = document.getElementById('log').scrollHeight;
}
function setIntervals(){
	timer = setInterval('GoPlay()',50);
}
function clearIntervals(){
	clearInterval(timer);
	window.location.href = "<?=install_url?>save4";
}
setTimeout(setIntervals, 100);
</script>
 
	</div>

	<div class="footer">
		&copy; 2009-2013 <a href="http://www.chshcms.com" target="_blank">chshcms.com</a>（桂林崇胜网络科技有限公司旗下品牌）
	</div>
</body>
</html>

